From 33eabee0d94da876444b0b0476fe2d6596866829 Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Sat, 8 Aug 2026 07:13:36 -0400 Subject: [PATCH] build: Remove G_GNUC_CONST from ostree-enumtypes.h.template get_type functions have global side effects, which makes them ineligible for the G_GNUC_CONST attribute. See https://gitlab.gnome.org/GNOME/glib/-/commit/01682955 for further details. Completes: e87513c5 --- src/libostree/ostree-enumtypes.h.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libostree/ostree-enumtypes.h.template b/src/libostree/ostree-enumtypes.h.template index 5043295b..4a4028fd 100644 --- a/src/libostree/ostree-enumtypes.h.template +++ b/src/libostree/ostree-enumtypes.h.template @@ -31,7 +31,7 @@ G_BEGIN_DECLS /*** BEGIN enumeration-production ***/ #define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (_@enum_name@_get_type ()) -GType _@enum_name@_get_type (void) G_GNUC_CONST; +GType _@enum_name@_get_type (void); /*** END enumeration-production ***/ -- 2.39.5